<template>
	<view class="content">
		<u--image :showLoading="true" :src="src" width="750rpx" height="600rpx" @click="click"></u--image>
		<u-gap height="20rpx" bgColor="#f5f5f5"></u-gap>
		<view class="ui_lable">
			<view class="ui_tip"></view>
			<view class="ui_text">种植溯源</view>
		</view>
		
		<view class="img_info">
			<view class="item" v-for="(item,index) in 2" :key="index" @click="nav_go('/pages/index/traceability_detail')">
				<image class="img" :src="src"></image>
				<view class="title">农药数据</view>
			</view>
		</view>
		
		<u-gap height="20rpx" bgColor="#f5f5f5"></u-gap>
		<view class="ui_lable">
			<view class="ui_tip"></view>
			<view class="ui_text">加工溯源</view>
		</view>
		
		<view class="img_info">
			<view class="item" v-for="(item,index) in 2" :key="index" @click="nav_go('/pages/index/traceability_detail')">
				<image class="img" :src="src"></image>
				<view class="title">农药数据</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: 'https://img2.baidu.com/it/u=2112311137,2912593221&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500'
			}
		},
		methods: {

			nav_go(url) {
				console.log(url)
				this.$util.navTo(url)
			},
		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.ui_lable{
			width: 690rpx;
			height: 70rpx;
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			margin-top: 20rpx;
			font-size: 30rpx;
			color: #333333;
			.ui_tip{
				width: 10rpx;
				height: 30rpx;
				border-radius: 5rpx;
				background-color: #333333;
				margin-right: 20rpx;
			}
			.ui_text{
				font-weight: bold;
			}
		}
		.ui_info{
			margin-bottom: 10rpx;
			display: flex;
			font-size: 28rpx;
			width: 610rpx;
			.right{
				color: #666;
			}
		}
		.img_info{
			margin-left: 10rpx;
			display: flex;
			width: 710rpx;
			.item{
				position: relative;
				box-shadow: 3px 0px 3px 1px rgba(0, 0, 0, 0.3);
				margin-right: 20rpx;
				border-radius: 20rpx;
				flex: 1;
				height: 130rpx;
				.img{
					border-radius: 20rpx;
					width: 100%;
					height: 100%;
				}
				.title{
					position: absolute;
					left: 20rpx;
					top: 15rpx;
					font-size: 24rpx;
					color: #fff;
					font-weight: bold;
				}
			}
		}
	}
</style>
